package com.zjitc.service;

import com.zjitc.model.Order;
import com.zjitc.model.OrderItem;
import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/15 17:01
 * @description:
 */
public interface OrderService {

  void add(Order order);

  List<Order> findByUid(String uid, Integer pageNum);

  void delete(String oid);

  Order findByOid(String oid);

  void payForUpdateOid(String oid);

  List<Order> findAllOrders(Integer pageNum, Integer count);

  List<Order> findAllByState(Integer state, Integer pageNum, Integer count);

  Order findOid(String oid);

  void updateRefund(String o);

    void updateSend(String oid, String express, Integer state);

  List<OrderItem> findByPid(String pid);

  void deletePid(String pid);
}
